var testHover = (function () {
    var test = function () {
        this.init();
        this.initEvent();
    };
    test.prototype = {
        init: function () {

        },
        initEvent: function () {
            var that=this;
            $('.item').mouseenter(function (e) {
                var $target=$(e.target);
                $target.closest('.item').find('.btn').addClass('btn-show');
            }).mouseleave(function (e) {
                var $target=$(e.target);
                $target.closest('.item').find('.btn').removeClass('btn-show');
            })
        }
    };
    return test;
})();
$(function () {
    new testHover();
});